]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
mixer-control: Print error when we fail to set default source
authorGuido Günther <agx@sigxcpu.org>
Sun, 4 Jan 2026 12:36:27 +0000 (13:36 +0100)
committerSimon McVittie <smcv@debian.org>
Wed, 28 Jan 2026 13:25:18 +0000 (13:25 +0000)
Makes is consistent with error handling for setting default sink

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31
Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34
Bug-Debian: https://bugs.debian.org/1126514
Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4

Gbp-Pq: Topic libgvc
Gbp-Pq: Name mixer-control-Print-error-when-we-fail-to-set-default-sou.patch

subprojects/gvc/gvc-mixer-control.c

index 15eb5e8f8586fd5e99daf988e4daa8b8c2a7b1cf..acac0ca141d47ec5c933b490a5bd72da7a2e1b2d 100644 (file)
@@ -729,7 +729,10 @@ gvc_mixer_control_change_input (GvcMixerControl *control,
         if (stream != default_stream) {
                 g_debug ("change-input - attempting to swap over to stream %s",
                          gvc_mixer_stream_get_description (stream));
-                gvc_mixer_control_set_default_source (control, stream);
+                if (!gvc_mixer_control_set_default_source (control, stream)) {
+                        g_warning ("Failed to set default source from input %s",
+                                   gvc_mixer_ui_device_get_description (input));
+                }
         }
 }